package cn.tedu.admin.content.controller;

import cn.tedu.admin.content.service.CategoryService;
import cn.tedu.admin.content.pojo.vo.CategoryVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
//url 可以加版本号
//app 1.0   categories/list
//app 1.1  categories/list(arg)
//app 5.0  categories/list(arg,arg)
//app 强升
@RequestMapping("v1/categories")
@RestController
public class ContentController {

    //http://tea.mall/v1/category/list
    //http://tea.mall/category/add
    //http://tea.mall/category/info
    @Autowired
    private CategoryService categoryService;

    @RequestMapping("list")
    public List<CategoryVO> listCategory(){
//        return contentService.listCategory();
        return null;
    }

    @RequestMapping("/category/add")
    public List<CategoryVO> add(){
//        return contentService.listCategory();
        return null;
    }
}
